package com.twu.biblioteca;

/**
 * Created by kashyapk on 24/02/14.
 */
public class Book {
    private String isbn;
    private String title;

    Book(String isbn, String title) {
        this.isbn = isbn;
        this.title = title;
    }

    public String GetIsbn() {
        return isbn;
    }

    public String GetTitle() {
        return title;
    }

    @Override
    public boolean equals(Object obj) {
        Book book = (Book) obj;
        if(this.title == book.GetTitle() && this.isbn == book.GetIsbn())
            return true;
        return false;
    }
}
